package cc.lj.internal.payment.infrastructure.repository.mysql;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.payment.domain.pay.repository.IProductConumeRepository;
import cc.lj.internal.payment.domain.pay.repository.ITicketPayRecordRepository;
import cc.lj.internal.payment.infrastructure.po.ProductConumePO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


/**
 * 合同收款表仓储实现
 * @author liangxifeng
 * @date 2021-12-11
 */
@Repository("productConumeRepository")
public class ProductConumeRepository implements IProductConumeRepository {
    @Resource(name="productConumeMysqlRespository")
    private ProductConumeMysqlRespository repository;


    @Override
    public Integer updateById(ProductConumePO entityPO) {
        return repository.updateById(entityPO);
    }

    @Override
    public List<ProductConumePO> getList(ProductConumePO entityPO) {
        return repository.getList(entityPO);
    }

    @Override
    public Integer insert(ProductConumePO ProductConumePO) {
        return repository.insert(ProductConumePO);
    }

    @Override
    public ProductConumePO getById(Integer consumeId) {
        return repository.getById(consumeId);
    }
}
